//
//  NSMutableAttributedString+SetStyle.h
//  ExpressionTest
//
//  Created by Charles on 16/9/15.
//  Copyright © 2016年 Charles. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <CoreText/CoreText.h>

@interface NSMutableAttributedString (SetStyle)

//设置文字颜色
- (void)sr_setTextColor:(UIColor*)color;
- (void)sr_setTextColor:(UIColor*)color range:(NSRange)range;

//设置字体
- (void)sr_setFont:(UIFont*)font;
- (void)sr_setFont:(UIFont*)font range:(NSRange)range;
//设置下划线
- (void)sr_setUnderlineStyle:(CTUnderlineStyle)style
                     modifier:(CTUnderlineStyleModifiers)modifier;
- (void)sr_setUnderlineStyle:(CTUnderlineStyle)style
                     modifier:(CTUnderlineStyleModifiers)modifier
                        range:(NSRange)range;
@end
